import React from 'react'
import {TouchableOpacity,Text} from 'react-native'
const style={
    marginTop:10,
    width: 100,
    height: 40,
    color: 'black',
    borderRadius:25,
    justifyContent:'center',
    backgroundColor:'lightblue'
}
const Mybtn = props => {
    return <TouchableOpacity style={props.style?props.style:style} onPress={props.onPress}>
    <Text style={{ color: props.style?.color ? props.style.color : '#000' }}>{props.children}</Text>
    </TouchableOpacity>

}

export default Mybtn
